package com.slliver.pojo;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


@Data
@NoArgsConstructor
@ToString
@EqualsAndHashCode
@Table(name = "tb_order")
@Accessors(chain = true) // 支持链式写法
public class Order implements Serializable {

    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;
    private String name;
}
